from django.db import models

# Create your models here.


class Cat(models.Model):
    name = models.CharField(max_length=20, verbose_name="姓名")
    age = models.IntegerField(default=1, verbose_name="年龄")

    def __str__(self):
        return self.name

    class Meta:
        db_table ="cat"
        ordering = ["id"]